<openerp>
<data>

      <record id="view_tracking_sale_order_form" model="ir.ui.view">
            <field name="name">view.tracking.sale.order.form</field>
            <field name="model">tracking.sale.order</field>
            <field name="arch" type="xml">
                <form string="Sale Order Tracking" create="0" edit="0" delete="false">
				<sheet>
                    <div class="oe_title">
                        <h1><label string="Sale Order Tracking"/></h1>
                    </div>
                    <group>
                        <field name="name" readonly="1"/>
						<field name="create_uid" readonly="1" string="Created by"/>
                       	<field name="create_date" readonly="1"/>
                       	<field name="write_uid" readonly="1"/>
                       	<field name="write_date" readonly="1"/>
                    </group>
				</sheet>
                </form>
            </field>
       </record>

       <record id="tracking_sale_order_search" model="ir.ui.view">
            <field name="name">tracking.sale.order.search</field>
            <field name="model">tracking.sale.order</field>
            <field name="arch" type="xml">
                <search string="Search Sale Order">
                   	<field name="name"/>
                    <field name="create_uid"/>
                    <field name="write_uid"/>
                </search>
            </field>
       </record>
 		
 	   <record id="tracking_sale_order_tree" model="ir.ui.view">
            <field name="name">tracking.sale.order.tree</field>
            <field name="model">tracking.sale.order</field>
            <field name="arch" type="xml">
            	<tree string="Sales Orders" create="0" edit="0" delete="false" fonts="bold:message_unread==True" colors="grey:state=='cancel';blue:state in ('waiting_date','manual');red:state in ('invoice_except','shipping_except')">
            		<field name="name"/>
            		<field name="create_uid" string="Created by"/>
		            <field name="create_date"/>
		            <field name="write_uid"/>
		            <field name="write_date"/>
		            <field name="message_unread" invisible="1"/>
		            <field name="state" invisible="1"/>
            	</tree>
	        </field>
       </record>
		
	   <record id="view_tracking_sale_order_action" model="ir.actions.act_window">
            <field name="name">Sale Order</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">tracking.sale.order</field>
            <field name="view_mode">tree,form</field>
            <field name="view_id" ref="tracking_sale_order_tree"/>
            <field name="search_view_id" ref="tracking_sale_order_search"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to view or search sale order entries.
              </p>
            </field>
       </record>
		
	   <menuitem action="view_tracking_sale_order_action" id="menu_sale_order_no_tracking"
            parent="menu_sale_tracking_no"
            sequence="1"/>  
</data>
</openerp>
